import java.util.Scanner;

public class 计算图形面积2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三角形的底长：");
        double a = scanner.nextDouble();
        System.out.println("请输入三角形的高：");
        double b = scanner.nextDouble();
        double area = (a * b) / 2;
        System.out.println("三角形的面积为：" + area);
    }

    public static void triangle(double a, double b) {
        System.out.println();
    }
}
